<div id="flexigrid" cellpadding="0" cellspacing="0" border="0">
    <table>
        <tbody>
        <volist name="userList" id="list">
           <!-- <tr data-id="{$list['id']}" class="trSelected">-->
            <tr data-id="{$list['id']}">
                <td class="sign">
                    <div style="width: 24px;"><i class="ico-check"></i></div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 40px;">{$list.id}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 250px;">{$list.username}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 220px;">{$list.address}</div>
                </td>
                <td align="left" class="">
                    <div style="text-align: center; width: 120px;">
                        <if condition="empty($list['add_time'])">
                                暂无
                            <else/>
                            {$list.add_time|date="Y-m-d H:i",###}
                            <if condition="!empty($list['flag']) ">
                                <font color="red">{$list['flag']}</font>
                            </if>
                        </if>

                    </div>

                <td align="left" class="">
                    <div style="text-align: center; width: 180px;">
                        <if condition="empty($list['get_time'])">
                            暂无
                            <else/>
                            {$list.get_time|date="Y-m-d H:i",###}
                            <if condition="!empty($list['flag']) ">
                                <font color="red">{$list['flag']}</font>
                            </if>
                        </if>

                    </div>
                </td>
                <td align="center" class="handle">
                    <div style="text-align: center; width: 170px; max-width:250px;">

                    </div>
                </td>
                <td align="" class="" style="width: 100%;">
                    <div>&nbsp;</div>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>
<!--分页位置-->
{$page}
<style>
    .btn_left_1 {
        color:#fff;
        font-size: 12px;
        font-weight: normal;
        line-height: 20px;
        background: #3b639f none;
        vertical-align: top;
        letter-spacing: normal;
        display: inline-block;
        height: 20px;
        padding: 1px 6px;
        margin: 0 5px 0 0;
        border: solid 1px #F5F5F5;
        border-radius: 4px;
        cursor: pointer !important;
    }
    .btn_left_b{
        color:#fff;
        font-size: 12px;
        font-weight: normal;
        line-height: 20px;
        background: #293038 none;
        vertical-align: top;
        letter-spacing: normal;
        display: inline-block;
        height: 20px;
        padding: 1px 6px;
        margin: 0 5px 0 0;
        border: solid 1px #F5F5F5;
        border-radius: 4px;
        cursor: pointer !important;
    }

</style>
<script>
    $(".pagination  a").click(function(){
        var page = $(this).data('p');
        ajax_get_table('search-form2',page);
    });
    $(document).ready(function(){
        // 表格行点击选中切换
        $('#flexigrid >table>tbody>tr').click(function(){
            $(this).toggleClass('trSelected');
        });
        $('#user_count').empty().html("{$pager->totalRows}");
    });
    function delfun(obj) {
        // 删除按钮
        layer.confirm('确认删除？', {
            btn: ['确定', '取消'] //按钮
        }, function () {
            $.ajax({
                type: 'post',
                url: $(obj).attr('data-url'),
                data: {id : $(obj).attr('data-id')},
                dataType: 'json',
                success: function (data) {
                    layer.closeAll();
                    if (data.status == 1) {
                        $(obj).parent().parent().parent().remove();
                    } else {
                        layer.alert(data.msg, {icon: 2});
                    }
                }
            })
        }, function () {
        });
    }

</script>